public class EachOne {
    public static void main(String[] args) {
        int number = 123;
        System.out.println(number%10);
        System.out.println(number/10%10);
        System.out.println(number/10/10%10);
    }
}
